FROM openjdk:8-jdk
COPY zzw-bridge-gateway.jar /zzw-bridge-gateway.jar
# 设置时区
ENV TIME_ZONE Asia/Shanghai
RUN echo ${TIME_ZONE} > /etc/timezone
RUN ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime

EXPOSE 8080
# 当容器启动时执行启动应用
ENTRYPOINT java -jar ${JAVA_MAIN_XMS} ${JAVA_MAIN_XMX} zzw-bridge-gateway.jar
